<?php
class Admin_Site_Controller extends  Base_Controller
{
    public $restful = true;

    public function get_index()
    {
        $settings = Setting::all_settings();
        $title = 'Cấu hình website';
        return view('admin.site.index', compact('settings', 'title'));
    }

    public function post_setting()
    {
        setting(Input::get('key'), Input::get('value'));
        return Response::json(array('code' => 1));
    }
}